/*    */ package com.infoservice.schedule.test;
/*    */ 
/*    */ import com.infoservice.po3.POFactory;
/*    */ import com.infoservice.schedule.ScheduleException;
/*    */ import com.infoservice.schedule.Task;
/*    */ import java.text.SimpleDateFormat;
/*    */ import java.util.Date;
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class TaskImpl extends Task
/*    */ {
/* 30 */   private Logger logger = Logger.getLogger(TaskImpl.class.getSimpleName());
/*    */ 
/*    */   public String execute()
/*    */   {
/* 35 */     this.logger.info("执行TaskImpl");
/* 36 */     this.logger.debug("p1name======" + getParam("p1name"));
/* 37 */     this.logger.debug("p2name======" + getParam("p2name"));
/* 38 */     this.logger.debug("p3name======" + getParam("p3name"));
/* 39 */     this.logger.debug("p4name======" + getParam("p4name"));
/* 40 */     this.logger.debug("p5name======" + getParam("p5name"));
/* 41 */     this.logger.debug("duration==============" + getDuration());
/*    */     try {
/* 43 */       TestPO test = new TestPO();
/* 44 */       SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
/* 45 */       test.setId(df.format(new Date()));
/* 46 */       getPOFactory(null, null).insert(test);
/* 47 */       return "耶稣阿拉和释迦..."; } catch (Exception e) {
/*    */     }
/* 49 */     throw new ScheduleException("1001", e.getMessage(), e);
/*    */   }
/*    */ }

/* Location:           D:\Workspace\Work\ASMP_DE\lib\frame3\InfoSchedule_1.0.03.jar
 * Qualified Name:     com.infoservice.schedule.test.TaskImpl
 * JD-Core Version:    0.6.0
 */